import { Entity, Column, PrimaryGeneratedColumn, UpdateDateColumn, ManyToOne, JoinColumn } from 'typeorm';
import { ApiProperty} from '@nestjs/swagger';
import { Exclude } from "class-transformer";
import {
  IsOptional,
  IsString,
  MaxLength,
  MinLength,
  IsNotEmpty,
  IsEmail,
  IsPhoneNumber,
  IsMobilePhone,
  IsDate,
  ValidateNested, IsDateString
} from "class-validator";

@Entity()
export class UserLevel {
  @PrimaryGeneratedColumn({type: 'mediumint'})
  id: number;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'varchar' ,length: 30, nullable: false})
  name:string;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'varchar' ,length: 255, nullable: false})
  description:string;

}
